
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<html>
<head>
    <title>叩丁狼客户关系管理系统-员工管理</title>
    <%@ include file="/WEB-INF/views/common/common.jsp"%>
    <script type="text/javascript" src="/static/js/system/employee.js"></script>
</head>
<body>
<!--员工列表-->
<table id="emp_datagrid"></table>

<!--员工工具栏-->
<div id="tb">
    <shiro:hasPermission name="employee:save">
    <a href="JavaScript:;" class="easyui-linkbutton" data-cmd="add"
       data-options="iconCls:'icon-add',plain:true">添加</a>
    </shiro:hasPermission>
    <shiro:hasPermission name="employee:edit">
    <a href="JavaScript:;" class="easyui-linkbutton" data-cmd="edit"
       data-options="iconCls:'icon-edit',plain:true">编辑</a>
    </shiro:hasPermission>

    <shiro:hasPermission name="employee:delete">
    <a href="JavaScript:;" class="easyui-linkbutton" data-cmd="remove"
       data-options="iconCls:'icon-remove',plain:true">删除</a>
    </shiro:hasPermission>
    <shiro:hasPermission name="employee:quit">
    <a href="JavaScript:;" class="easyui-linkbutton" data-cmd="quit"
       data-options="iconCls:'icon-lock',plain:true" id="quit">离职</a>
    </shiro:hasPermission>
    <a href="JavaScript:;" class="easyui-linkbutton" data-cmd="reload"
       data-options="iconCls:'icon-reload',plain:true">刷新</a>

    <div>
        商品名称/编码:<input type="text" name="keyword" id="keyword">
        <a href="JavaScript:;" class="easyui-linkbutton" data-cmd="searchT"
           data-options="iconCls:'icon-search',plain:true">查询</a>
    </div>

</div>

<!--员工的添加与编辑对话框-->
<div id="emp_dialog">
    <form id="editForm" method="post">

        <input type="hidden" name="id" id="empId">

        <table align="center" style="margin-top: 20px;
                border-collapse:separate; border-spacing:0px 10px;">
            <tr>
                <td>员工名称:</td>
                <td><input class="easyui-textbox" name="username"/></td>
            </tr>
            <tr>
                <td>真实姓名:</td>
                <td><input class="easyui-textbox" name="realname"/></td>
            </tr>
            <tr>
                <td align="right">电话:</td>
                <td><input class="easyui-textbox" name="tel"/></td>
            </tr>
            <tr>
                <td align="right">邮箱:</td>
                <td><input class="easyui-textbox" name="email"/></td>
            </tr>
            <tr>
                <td align="right">部门:</td>
                <td>

                    <input class="easyui-combobox" name="dept.id" data-options="
                        url:'/department/listData.do',
                        valueField:'id',
                        textField:'name',
                        panelHeight:'auto'

                    ">
                </td>
            </tr>
            <tr>
                <td align="right">角色:</td>
                <td>
                    <input class="easyui-combobox"  id="roles" data-options="
                        url:'/role/listData.do',
                        valueField:'id',
                        textField:'name',
                        panelHeight:'auto',
                        multiple:true

                    ">
                </td>
            </tr>

        </table>
    </form>
</div>

<!--编辑与添加对话框的按钮-->
<div id="bb">
    <a href="JavaScript:;" class="easyui-linkbutton"
       iconCls="icon-save" data-cmd="save">保存</a>
    <a href="JavaScript:;" class="easyui-linkbutton"
       iconCls="icon-cancel" data-cmd="cancel">关闭</a>
</div>


</body>
</html>
